import request from '@/utils/request'

/**
 * 新车库存--调拨出入库
 * @param {*} form
 * @param {*} pageSize
 * @param {*} currentPage
 */
export function dataList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/allotStorage/page', data)
}
/**
 * 新增
 * @param {*} options
 */
export function addData(options={}) {
  return request.post('/sq/allotStorage/qr', options)
}

/**
 * 删除
 * @param {*} id
 */
export function deleteData(id) {
  return request.delete(`/sq/allotStorage/del/${id}`)
}
/**
 * 根据id查询详情
 * @param {*} options
 */
export function details(id) {
  return request.get('/sq/allotStorage/detail/' + id)
}
// /sq/zjlx/findAllByStoreId/{storeId}根据门店获取资金利息
export function findByInfoId(storeId) {
  return request.get('/sq/allotStorage/info/' + storeId)
}
// 确认出库
export function inStockOk(id) {
  return request.get(`/sq/allotStorage/inStock/${id}`)
}
